//
//  NSObject+BPSwizzle.h
//  BPCrashDemo
//
//  Created by SiYugui on 2019/12/18.
//  Copyright © 2019年 SiYugui. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <objc/runtime.h>

@interface NSObject (BPSwizzle)

/**
 exchangeClass

 @param obj_class Class
 @param m1 original_selector
 @param m2 replace_Selector
 */
+ (void)exchangeClassMethod:(Class)obj_class method1:(SEL)m1 method2:(SEL)m2;

+ (void)exchangeClassMethod:(SEL)original_meathod method2:(SEL)replace_meathod;


/**
 exchangeInstance

 @param obj_class Class
 @param m1 original_selector
 @param m2 replace_Selector
 */
+ (void)exchangeInstanceMethod:(Class)obj_class method1:(SEL)m1 method2:(SEL)m2;

+ (void)exchangeInstanceMethod:(SEL)original_meathod method2:(SEL)replace_meathod;
@end
